-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds mass and normalize for a measure #130
base: master
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #130 +/- ##
==========================================
- Coverage 33.96% 33.73% -0.24%
==========================================
Files 50 51 +1
Lines 998 1005 +7
==========================================
Hits 339 339
- Misses 659 666 +7
Continue to review full report at Codecov.
|
Hey there @sethaxen! I wanted to do that too in order to simulate Poisson processes on a given set, but I was going to make the relevant measures callable: something like (::Lebesgue{ℝ})(interval::IntervalSets.AbstractInterval) = duration(interval) Is that compatible with your approach? If not, which do you think is best? |
After some more thinking, I feel like it the notion of total mass is intimately linked with the subset we consider. If we want to integrate (numerically) a measure on a set, do we define the measure on that set (as in |
The purpose of this PR was to provide an easy way to normalize a measure, but I don't think this is the right approach. For example, suppose we have a measure I've been experimenting with a
I completely agree that for computing mass in general, we need a generic way to define sets, and it would be nice to be able to flexible hook into numerical integration packages for that. But because something like |
Yes, I think these are two different things. For a measure Otherwise, we need to be a little restrictive, since things can get out of hand. I do think there are some things we can do for manifolds or measures dominated by Lebesgue measure, moslty in terms of intervals. IntervalSets is very lightweight, so I think we could depend on that. Beyond that, there's lots of great stuff in JuliaIntervals that we could get to through an extension package. Those (at least mostly) don't depend on IntervalSets, but a conversion should be very easy. |
So where does that leave us? I'm a bit lost as to what to implement |
Sounds like we collectively need to get in sync. I'll write a summary on Zulip, and we can talk some more about a broad view of where we're heading. |
Fixes #128